import api from "@/util/api.js";

//查询
async function findall(pageNo=1,pageSize=10,params={}){
    let resp=await api({
        url:"/facility",
        method:"get",
        params:{pageNo,
            pageSize,
            ...params
        }
    });
    //console.log(resp);
    return resp;
}
//删除
async function deleteids(ids){
    let resp=await api({
        url:"/facility",
        method:"delete",
        data:ids
    })
    return resp;
}
//新增
async function adduser(adminadd){
    let resp=await api({
        url:"/facility",
        method:"post",
        data:adminadd
    })
    return resp;
}
//修改
async function updateuser(adminadd){
    let resp=await api({
        url:"/facility",
        method:"put",
        data:adminadd
    })
    return resp;
}
export {findall,deleteids,adduser,updateuser}